package com.jams.goodox.entity;

import android.content.Context;

import com.jams.goodox.R;
import com.jams.goodox.net.BaseEntity;

import java.util.List;

/**
 * Created by Jin on 2016/8/15.
 * Description
 */
public class BillDetail extends BaseEntity {
    /**
     * id : 1f0595d6-55a0-4858-9f8c-1da86c3229cb
     * intime : 2016-09-13 09:53
     * itemList : [{"id":"ee54afa0-1084-4db1-bc5a-41ca27222885","itemName":"西装清洗","itemNum":1,"itemPrice":0.01,"itemUnit":"元/件","orderId":"e185f109-7d84-44bf-8e56-6ec290e2835d","specId":"0952f89d-6db6-11e6-a56a-00163e005381"}]
     * list : [{"address":"测试内容rq22","item":"测试内容g30q","monthList":[{"billMonth":"测试内容7a28","billYear":"测试内容v744","id":"测试内容sh41","item":"测试内容j170","totalPrice":"测试内容y8gf"}]}]
     * moneyChange : -0.01
     * moneyType : 1
     * propertyMonthCount : 1
     * refId : e185f109-7d84-44bf-8e56-6ec290e2835d
     * refundReason : 1
     * serialNumber : DL2016091300005
     * shopName : 绿漫科技
     * specialType : 21
     * subName : 象王洗衣
     * type : 2
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String id;//账单ID
        private String intime;
        private String moneyChange;//金额
        private int moneyType;//1支付宝、2银联、3微信、4招行一网通、9线上支付、10绿城充值卡
        private int propertyMonthCount;//物业缴费月数总和
        private String refId;
        private String refundReason;//退款原因
        private String serialNumber;
        private String shopName;
        private int specialType;//21订单消费，23猎头消费，31订单退款,33流量充值退款,34 猎头佣金，43物业缴费，44流量充值消费，45停车缴费，46场地缴费
        private String subName;
        private int type;//0全部，1充值，2消费，3退款
        private String money;
        private String flowSize;
        private String userange;
        private String orderMoney;

        private String moneyChangeStr;

        private String enterpriseName;//企业名
        private String userName;//收款人
        public String getEnterpriseName() {
            return enterpriseName;
        }

        public void setEnterpriseName(String enterpriseName) {
            this.enterpriseName = enterpriseName;
        }
        public String getPayType(Context context) {
            switch (moneyType) {
                case 1:
                    return "支付宝";
                case 2:
                    return "银联";
                case 3:
                    return "微信";
                case 4:
                    return "一网通";
                case 5:
                    return "账户余额";
                case 9:
                    return "在线支付";
                case 10:
                    return context.getResources().getString(R.string.zi_jin) + "充值卡";
                case 0:
                    return "线下支付";
                default:
                    return "账户余额";
            }
        }

        public String getOrderMoney() {
            return orderMoney;
        }

        public void setOrderMoney(String orderMoney) {
            this.orderMoney = orderMoney;
        }

        public String getFlowSize() {
            return flowSize;
        }

        public void setFlowSize(String flowSize) {
            this.flowSize = flowSize;
        }

        public String getUserange() {
            return userange;
        }

        public void setUserange(String userange) {
            this.userange = userange;
        }

        /**
         * id : ee54afa0-1084-4db1-bc5a-41ca27222885
         * itemName : 西装清洗
         * itemNum : 1
         * itemPrice : 0.01
         * itemUnit : 元/件
         * orderId : e185f109-7d84-44bf-8e56-6ec290e2835d
         * specId : 0952f89d-6db6-11e6-a56a-00163e005381
         */

        private List<ItemListBean> itemList;//产品列表


        private List<PlaceItem> placeList;//产品列表
        /**
         * address : 测试内容rq22
         * item : 测试内容g30q
         * monthList : [{"billMonth":"测试内容7a28","billYear":"测试内容v744","id":"测试内容sh41","item":"测试内容j170","totalPrice":"测试内容y8gf"}]
         */

        private List<ListBean> list;//物业缴费列表

        public List<PlaceItem> getPlaceList() {
            return placeList;
        }

        public void setPlaceList(List<PlaceItem> placeList) {
            this.placeList = placeList;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIntime() {
            return intime;
        }

        public void setIntime(String intime) {
            this.intime = intime;
        }

        public String getMoneyChangeStr() {
            return moneyChangeStr;
        }

        public void setMoneyChangeStr(String moneyChangeStr) {
            this.moneyChangeStr = moneyChangeStr;
        }

        public String getMoneyChange() {
            return moneyChange;
        }

        public void setMoneyChange(String moneyChange) {
            this.moneyChange = moneyChange;
        }

        public int getMoneyType() {
            return moneyType;
        }

        public void setMoneyType(int moneyType) {
            this.moneyType = moneyType;
        }

        public int getPropertyMonthCount() {
            return propertyMonthCount;
        }

        public void setPropertyMonthCount(int propertyMonthCount) {
            this.propertyMonthCount = propertyMonthCount;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getRefId() {
            return refId;
        }

        public void setRefId(String refId) {
            this.refId = refId;
        }

        public String getRefundReason() {
            return refundReason;
        }

        public void setRefundReason(String refundReason) {
            this.refundReason = refundReason;
        }

        public String getSerialNumber() {
            return serialNumber;
        }

        public void setSerialNumber(String serialNumber) {
            this.serialNumber = serialNumber;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public int getSpecialType() {
            return specialType;
        }

        public void setSpecialType(int specialType) {
            this.specialType = specialType;
        }

        public String getSubName() {
            return subName;
        }

        public void setSubName(String subName) {
            this.subName = subName;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public List<ItemListBean> getItemList() {
            return itemList;
        }

        public void setItemList(List<ItemListBean> itemList) {
            this.itemList = itemList;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public static class ItemListBean {
            private String id;
            private String itemName;
            private int itemNum;
            private double itemPrice;
            private String itemUnit;
            private String orderId;
            private String specId;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getItemName() {
                return itemName;
            }

            public void setItemName(String itemName) {
                this.itemName = itemName;
            }

            public int getItemNum() {
                return itemNum;
            }

            public void setItemNum(int itemNum) {
                this.itemNum = itemNum;
            }

            public double getItemPrice() {
                return itemPrice;
            }

            public void setItemPrice(double itemPrice) {
                this.itemPrice = itemPrice;
            }

            public String getItemUnit() {
                return itemUnit;
            }

            public void setItemUnit(String itemUnit) {
                this.itemUnit = itemUnit;
            }

            public String getOrderId() {
                return orderId;
            }

            public void setOrderId(String orderId) {
                this.orderId = orderId;
            }

            public String getSpecId() {
                return specId;
            }

            public void setSpecId(String specId) {
                this.specId = specId;
            }
        }

        public static class ListBean {
            private String address;
            private String item;
            private String enterpriseName;
            private int identity;//0个人，1企业
            private String payUserName;//操作人
            private String payUserPhone;//操作人电话
            private String date;
            private String begin;
            private String end;
            private String price;
            private String timeCount;//数量

            private List<MonthListBean> monthList;

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getItem() {
                return item;
            }

            public void setItem(String item) {
                this.item = item;
            }

            public List<MonthListBean> getMonthList() {
                return monthList;
            }

            public void setMonthList(List<MonthListBean> monthList) {
                this.monthList = monthList;
            }

            public String getEnterpriseName() {
                return enterpriseName;
            }

            public void setEnterpriseName(String enterpriseName) {
                this.enterpriseName = enterpriseName;
            }

            public String getPayUserName() {
                return payUserName;
            }

            public void setPayUserName(String payUserName) {
                this.payUserName = payUserName;
            }

            public int getIdentity() {
                return identity;
            }

            public void setIdentity(int identity) {
                this.identity = identity;
            }

            public String getPayUserPhone() {
                return payUserPhone;
            }

            public void setPayUserPhone(String payUserPhone) {
                this.payUserPhone = payUserPhone;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getBegin() {
                return begin;
            }

            public void setBegin(String begin) {
                this.begin = begin;
            }

            public String getEnd() {
                return end;
            }

            public void setEnd(String end) {
                this.end = end;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getTimeCount() {
                return timeCount;
            }

            public void setTimeCount(String timeCount) {
                this.timeCount = timeCount;
            }

            public static class MonthListBean {
                private String billMonth;
                private String billYear;
                private String id;
                private String item;
                private String totalPrice;

                public String getBillMonth() {
                    return billMonth;
                }

                public void setBillMonth(String billMonth) {
                    this.billMonth = billMonth;
                }

                public String getBillYear() {
                    return billYear;
                }

                public void setBillYear(String billYear) {
                    this.billYear = billYear;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getItem() {
                    return item;
                }

                public void setItem(String item) {
                    this.item = item;
                }

                public String getTotalPrice() {
                    return totalPrice;
                }

                public void setTotalPrice(String totalPrice) {
                    this.totalPrice = totalPrice;
                }
            }
        }

        public static class PlaceItem {
            private int buyNum;  //购买数量
            private String carNum;  //车牌号
            private String communityId;  //	***Id
            private String communityName;   //***名
            private String endTime;//套餐结束时间
            private String enterpriseName;//	企业名
            private int identity;//身份,0:个人,1:企业
            private String inuser;//	下单人Id
            private String menuCost;//套餐价格
            private int menuType;//	套餐类型:1免费,2包月,3:包年
            private String mobileNum;//	下单人手机号
            private String orderId;//订单Id
            private String orderNum;//订单编号
            private String startTime;//套餐开始时间
            private String subId;//服务Id
            private String subName;//	服务名
            private String subPhone;//	服务手机号
            private String userName;//下单人

            public int getBuyNum() {
                return buyNum;
            }

            public void setBuyNum(int buyNum) {
                this.buyNum = buyNum;
            }

            public String getCarNum() {
                return carNum;
            }

            public void setCarNum(String carNum) {
                this.carNum = carNum;
            }

            public String getCommunityId() {
                return communityId;
            }

            public void setCommunityId(String communityId) {
                this.communityId = communityId;
            }

            public String getCommunityName() {
                return communityName;
            }

            public void setCommunityName(String communityName) {
                this.communityName = communityName;
            }

            public String getEndTime() {
                return endTime;
            }

            public void setEndTime(String endTime) {
                this.endTime = endTime;
            }

            public String getEnterpriseName() {
                return enterpriseName;
            }

            public void setEnterpriseName(String enterpriseName) {
                this.enterpriseName = enterpriseName;
            }

            public int getIdentity() {
                return identity;
            }

            public void setIdentity(int identity) {
                this.identity = identity;
            }

            public String getInuser() {
                return inuser;
            }

            public void setInuser(String inuser) {
                this.inuser = inuser;
            }

            public String getMenuCost() {
                if (menuCost == null) {
                    return "";
                }
                return menuCost;
            }

            public void setMenuCost(String menuCost) {
                this.menuCost = menuCost;
            }

            public int getMenuType() {
                return menuType;
            }

            public void setMenuType(int menuType) {
                this.menuType = menuType;
            }

            public String getMobileNum() {
                return mobileNum;
            }

            public void setMobileNum(String mobileNum) {
                this.mobileNum = mobileNum;
            }

            public String getOrderId() {
                return orderId;
            }

            public void setOrderId(String orderId) {
                this.orderId = orderId;
            }

            public String getOrderNum() {
                return orderNum;
            }

            public void setOrderNum(String orderNum) {
                this.orderNum = orderNum;
            }

            public String getStartTime() {
                return startTime;
            }

            public void setStartTime(String startTime) {
                this.startTime = startTime;
            }

            public String getSubId() {
                return subId;
            }

            public void setSubId(String subId) {
                this.subId = subId;
            }

            public String getSubName() {
                return subName;
            }

            public void setSubName(String subName) {
                this.subName = subName;
            }

            public String getSubPhone() {
                return subPhone;
            }

            public void setSubPhone(String subPhone) {
                this.subPhone = subPhone;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }
    }
}
